<%= form_tag :controller=>'report', :action => 'update_incumbent', :id=>incumbent.id%>
<% unless @activeuser.own(@incumbent) %>
<div class="solid_line" style="text-decoration: underline;">所在公司信息</div>
<div class="picture" style="margin-left:10px;"><%=show_picture(company)%></br>
<%=audit_company(company)%></div>
<div class="info">
<ul class="center_column_info">
	<li><strong>公司名称：</strong><%=h(company.name)%></li>
	<li><strong>公司地址：</strong><%=h(company.address)%></li>
</ul>
<ul class="left_column_info">
	<li><strong>所在行业：</strong><%=company.report_industry.name%></li>
	<li><strong>公司性质：</strong> <%=company.report_entity.name%></li>
</ul>
<ul class="right_column_info">
	<li><strong>公司人数：</strong><%=company.report_size.name%></li>
	<li><strong>内部级别：</strong><%=company.grade%>级</li>
</ul>
</div>
<div style="clear:left;">
<h3>标签:&nbsp;<%=show_tag_list(company.tag_list,3,6)%></h3>
</div>
<% end %>
<div class="solid_line" style="text-decoration: underline;">提供职位数据</div>
<ul>
	<li class="info_data">职位名称：<%= text_field 'incumbent', 'tname',:size=>"35",:class=>"info_input"%></li>
	<li class="info_data">月均收入：<%= text_field 'incumbent', 'tsalary',:size=>"10",:class=>"info_input"%></li>
	<li class="info_data">所属职能：<%= @functions=Function.find(:all).map {|u| [u.name, u.id] }
			select 'function', 'id',@functions,:selected=>@functions[incumbent.view_position.function_id-1]%>
	<%= observe_field(:function_id,:frequency => 0.5,:update => "position",:url => {:controller=>"index",:action => "post_position"}) %></li>
	<li class="info_data">所属职位：<span id="position"><%= @positions = Position.find(:all,:conditions=>["function_id=?",incumbent.view_position.function_id]).map {|u| [u.name, u.id] }
			select 'incumbent', 'tposition_id',@positions%></span></li>
	<li class="info_data">有效年份：<%= select 'incumbent', 'teffective_year', 2000..2008 %>年</li>
	<li class="info_data">所在城市：<%= @regions=Region.find(:all).map {|u| [u.name, u.id] }
                	select 'region', 'id',@regions,:selected=>@regions[incumbent.view_city.region_id-1]%>
	<%= observe_field(:region_id,:frequency => 0.5,:update => "city",:url => {:controller=>"index",:action => "post_city"})%>
	<span id="city"><%= @cities = City.find(:all,:conditions=>["region_id=?",incumbent.view_city.region_id]).map {|u| [u.name, u.id] }
					select 'incumbent', 'tcity_id',@cities%></span></li>
	<li class="info_data">所属级别：<span id="rankList"><%= select 'incumbent', 'trank',1..company.grade%></span></li>
</ul>
<div style="width:480px;" align="right">
<%= submit_tag " 更 新 ",:class=>"btn_mouseout",
:onmouseover=>"this.className='btn_mouseover'",
	:onmouseout=>"this.className='btn_mouseout'",
	:onmousedown=>"this.className='btn_mousedown'",
	:onmouseup=>"this.className='btn_mouseup'",:onClick=>"if(confirm('更新后将删除该样本的职位报告，是否继续？'))return true;return false"%>
&nbsp;(
<%= link_to_remote "取消", :url=>{:controller=>"info", :action=>"hide_incumbent", :id=>incumbent.id} %>
)
<%= end_form_tag %>
</div>
<div class="solid_line">标签(<a
	href=<%=url_for :controller=>"info", :action=>"modify_tag", :obj_id=>incumbent.id, :category_id=>1 %>
	onclick="window.open(this.href,'修改标签','height=360px,width=480px');return false;">修改标签</a>):&nbsp;<span
	id=<%="tag_1_"+incumbent.id.to_s%>><%=show_tag_list(incumbent.tag_list,1,6)%></span></div>
